package ru.aslanov.schedule.model;

import javax.xml.namespace.QName;
import javax.xml.bind.annotation.XmlAnyAttribute;
import java.util.Map;
import java.util.HashMap;

/**
 * Created by IntelliJ IDEA.
 * Created: Feb 3, 2010 4:10:33 PM
 *
 * @author Sergey Aslanov
 */
public class DataItem {
    private Map<QName,Object> attributes = new HashMap<QName, Object>();

    public DataItem() {
    }

    public void setAttribute(String name, Object value) {
        attributes.put(new QName(name), value);
    }

    @XmlAnyAttribute
    public Map<QName, Object> getAttributes() {
        return attributes;
    }
}
